﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


public class Cube
{
    /// <summary>
    /// 长
    /// </summary>
    public int x;
    /// <summary>
    /// 宽
    /// </summary>
    public int y;
    /// <summary>
    /// 高
    /// </summary>
    public int z;

    public Cube(int x, int y, int z)
    {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    /// <summary>
    /// 体积
    /// </summary>
    /// <param name="x">长</param>
    /// <param name="z">宽</param>
    /// <param name="y">高</param>
    public int Got(int x, int z, int y)
    {
        return x * y * z;
    }

    /// <summary>
    /// 面积
    /// </summary>
    /// <param name="x">长</param>
    /// <param name="y">宽</param>
    /// <param name="z">高</param>
    public int Get(int x, int y, int z)
    {
        return (x * y + x * z + z * y) * 2;
    }
}
